package org.csu.leiyun.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo") //该类跳转根目录
public class DemoController {
    @GetMapping("/demo")//跳转该方法目录 http:localhost:8080/demo/demo
    public String demo(){
        return "index";
    }
}
